<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title>新增</title>
</rapid:override>

<rapid:override name="content">
	<s:form action="/pages/Resource/usuallyURLModify.do" method="post" enctype="multipart/form-data">


		<table class="formTable">


<!-- ONGL access static field: @package.class@field or @vs@field -->
	<s:hidden id="resourceId" name="resourceId" />
	<s:textfield label="名称" key="resourceName" value="%{model.resourceName}" cssClass="" required="false"  size="30"/>
	<s:textfield label="常用网址" key="resourceSize" value="%{model.resourceSize}" cssClass="" required="false"  size="100" />

		</table>
		 <input id="submitButton" name="submitButton" type="submit" value="提交" />
		<input type="button" value="返回列表" onclick="window.location='${ctx}/pages/Resource/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>
	</s:form>

	<script>

		new Validation(document.forms[0],{onSubmit:true,onFormValidate : function(result,form) {
			var finalResult = result;

			//在这里添加自定义验证

			return disableSubmit(finalResult,'submitButton');
		}});
	</script>
</rapid:override>

<%@ include file="base.jsp" %>